package top.xierongsheng.user.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.xierongsheng.user.dao.UserMapper;
import top.xierongsheng.user.model.SysUser;
import top.xierongsheng.user.service.IUserService;

import java.util.HashMap;


/**
 * 用户表 服务实现类
 *
 * @auther 谢荣生
 * @datetime 2020/10/16 17:23
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, SysUser> implements IUserService {

    @Autowired(required = false)
    private UserMapper userMapper;

    /**
     * 分页获取用户列表
     *
     * @param page
     * @param roleId
     * @param areaId
     * @param sex
     * @param status
     * @param key
     * @return
     * @auther 谢荣生
     * @datetime 2020/11/6 17:33
     */
    @Override
    public IPage<HashMap> getUserListPage(Page<?> page, String roleId, Integer areaId, Integer sex, Integer status, String key) {
        return userMapper.getUserListPage(page, roleId, areaId, sex, status, key);
    }

}
